/*checkbox样式1*/
input[name="checktest1"]{
    margin-right: 5px;
    cursor: pointer; /*cursor属性是css中的光标属性*/
    font-size: 14px;
    width: 10px;
    height: 15px;
    position: relative;
}

input[name="checktest1"]:after{
    position: absolute;
    width: 10px;
    height: 15px;
    top: 0;
    content: " ";
    color: #fff;
    display: inline-block;
    visibility: visible;
    padding: 0px 3px;
    border-radius: 3px;
    background: #fff;
    border: 1px solid #ddd;
}

input[name="checktest1"]:checked:after{
    content: "\2713";
    font-size: 5px;    
    font-weight: 600;
    background-color: #00B96B;
    border: none;
}



/*checkbox样式2*/
.box{
    position: relative;
}
.box label{
    cursor: pointer;
    margin-top: 50px;
    position: absolute;
    width: 18px;
    height: 18px;
    top: 0;
    left: 0;
    background: transparent;
    border: 1px solid black;
}
.box label::after{
    opacity: 1;
    content: '';
    position:absolute;
    width: 9px;
    height: 5px;
    background: transparent;
    top: 3px;
    left: 3px;
    border: 2px solid #575CFF;
    border-top: none;
    border-right: none;

    /* 画√号*/
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.box input[name=checktest2]:checked + label:after{
    opacity: 0;        
}


input[name=checktest2]{
    visibility: hidden;
}
